<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div dojoType="dijit.form.Form" jsId="myForm" encType="multipart/form-data" action="" method="">
    <script type="dojo/method" event="onSubmit">
        if (this.validate()) {
            return confirm('Form is valid, press OK to submit');
            return true;
        } else {
            alert('Form contains invalid data.  Please correct first');
            return false;
        }
       
    </script>
<div>
  <div id="addresumeleft">
         <dl>
            <dd>
              <label for="username">候选人姓名:</label>
              <input name="username" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>
                        <dd> 
              <label for="contactWay">联系方式:</label>
              <input name="contactWay" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>
 
            <dd> 
              <label for="major">专业:</label>
              <input name="major" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>

            <dd> 
              <label for="degree">学历:</label>
              <select dojoType="dijit.form.ComboBox"  name="degree" required="true">
                <option>高中</option>
                <option selected>本科</option>
                <option>专科</option>
              </select>
            </dd>

            <dd>
              <label for="graduateDate">毕业时间:</label>
              <input type="text" name="graduateDate" dojoType="dijit.form.DateTextBox" value="2009-1-1" required="true" />
            </dd>

            <dd> 
              <label for="graduateSchool">毕业院校:</label>
              <input name="graduateSchool" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>

    
         </dl>
    </div>
    <div id="addresumeright">
         <dl>
            <dd> 
              <label for="citylivein">目前所在城市:</label>
              <input name="citylivein" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>
                            
            <dd> 
             <label for="oldPosition">原职位:</label>
             <input name="oldPosition" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>

            <dd>                 
             <label for="oldCompany">原公司:</label>
             <input name="oldCompany" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>
            
            <dd>
             <label for="fitposition">适合职位:</label>
             <input name="fitposition" dojoType="dijit.form.TextBox" value="" intermediateChanges="true" trim="true" required="true">
            </dd>
            
            <dd> 
             <label for="workExperience">工作年限:</label>
             <input type="text" dojoType="dijit.form.NumberTextBox" name="workExperience" value="3" constraints="{min:1,max:100,places:0}" required="true" invalidMessage="请您输入有效年份">
            </dd>

            <dd>
             <label for="resumefile">上传简历文件:</label>
             <input name="resumefile" class="dijitTextBox" type="file" value="" intermediateChanges="true" trim="true">
            </dd>
         </dl>
  </div>
  <div id="addresumebottom">

              <label for="comment">评语:</label><br>
              <textarea class="comment" name="comment" dojoType="dijit.form.Textarea" required="true">
              
              
              
                      
              </textarea>  
              <br><br>
              <button dojoType="dijit.form.Button" type="submit" name="submitButton" value="Submit">添加</button>
              <button dojoType="dijit.form.Button" type="reset" name="submitButton" value="reset">重置</button>
              
  </div>
</div>
</div>